//
//  ApprovalDetailCell.swift
//  HuaYun
//
//  Created by enghou on 2018/7/13.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class ApprovalDetailCell: UITableViewCell {

    
    var ifrmb = false
    
    var title: String? {
        
        set{
            self.titleLbl.text = newValue
            
        }
        
        get{
            return self.titleLbl.text
        }
    }
    
    var content: String? {
        
        set{
            if ((newValue?.count ?? 0) > 0) {
                if ifrmb {
                    self.detailLbl.text = newValue?.rmbformat
                } else {
                    self.detailLbl.text = newValue
                }
            } else {
                self.detailLbl.text = "-"
            }
        }
        
        get{
            return self.detailLbl.text
        }
    }
    
    
    @IBOutlet weak var titleLbl: UILabel!
    
    @IBOutlet weak var detailLbl: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
